package practice.observer;

/**
 * @ClassName Site
 * @Description TODO
 * @Author yaoqiang
 * @Date 2020/9/7 9:20
 * @Version 1.0
 */
public class Site implements Obs {
    private double humidity;

    public Site() {

    }

    @Override
    public void update(double humidity) {
        this.humidity = humidity;
        System.out.println("....网站上显示的湿度" + humidity);
    }

    public double getHumidity() {
        return humidity;
    }

    public void setHumidity(double humidity) {
        this.humidity = humidity;
    }
}
